package com.isale.model.db;

import com.isale.common.model.db.BaseDbEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 商品表
 * 数据库表【isale_goods】对应的entity对象
 *
 * @author bjs
 * @date 2016-11-15 11:15:55
 */
@Entity
@Table(name = "isale_goods")
public class IsaleGoods extends BaseDbEntity implements Serializable {


    // 商品名称
    @Column(name = "goods_name", nullable = false)
    private java.lang.String goodsName;


    // 分类id
    @Column(name = "cat_id", nullable = false)
    private java.lang.Integer catId;


    // 分类名称
    @Column(name = "cat_name", nullable = false)
    private java.lang.String catName;


    // 商品链接
    @Column(name = "url", nullable = false)
    private java.lang.String url;


    // 商品编号
    @Column(name = "goods_code", nullable = false)
    private java.lang.String goodsCode;


    // 现价
    @Column(name = "goods_price", nullable = false)
    private java.lang.String goodsPrice;


    // 原价
    @Column(name = "origin_price", nullable = false)
    private java.lang.String originPrice;


    // 返利金额
    @Column(name = "rebate", nullable = false)
    private java.lang.String rebate;


    // 佣金比例
    @Column(name = "commission_ratio", nullable = false)
    private java.lang.String commissionRatio;


    // 商品来源
    @Column(name = "good_from", nullable = false)
    private java.lang.String goodFrom;


    // 关键词
    @Column(name = "keywords", nullable = false)
    private java.lang.String keywords;


    // 喜欢人数
    @Column(name = "star_num", nullable = false)
    private java.lang.Long starNum;


    // 展示图片
    @Column(name = "pic_urls", nullable = false)
    private java.lang.String picUrls;


    // ================================================================================================


    /**
     * 获取对象的属性【商品名称】
     *
     * @return java.lang.String
     */
    public java.lang.String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置对象的属性【商品名称】
     *
     * @param goodsName
     */
    public void setGoodsName(java.lang.String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 获取对象的属性【分类id】
     *
     * @return java.lang.Integer
     */
    public java.lang.Integer getCatId() {
        return catId;
    }

    /**
     * 设置对象的属性【分类id】
     *
     * @param catId
     */
    public void setCatId(java.lang.Integer catId) {
        this.catId = catId;
    }

    /**
     * 获取对象的属性【分类名称】
     *
     * @return java.lang.String
     */
    public java.lang.String getCatName() {
        return catName;
    }

    /**
     * 设置对象的属性【分类名称】
     *
     * @param catName
     */
    public void setCatName(java.lang.String catName) {
        this.catName = catName;
    }

    /**
     * 获取对象的属性【商品链接】
     *
     * @return java.lang.String
     */
    public java.lang.String getUrl() {
        return url;
    }

    /**
     * 设置对象的属性【商品链接】
     *
     * @param url
     */
    public void setUrl(java.lang.String url) {
        this.url = url;
    }

    /**
     * 获取对象的属性【商品编号】
     *
     * @return java.lang.String
     */
    public java.lang.String getGoodsCode() {
        return goodsCode;
    }

    /**
     * 设置对象的属性【商品编号】
     *
     * @param goodsCode
     */
    public void setGoodsCode(java.lang.String goodsCode) {
        this.goodsCode = goodsCode;
    }

    /**
     * 获取对象的属性【现价】
     *
     * @return java.lang.String
     */
    public java.lang.String getGoodsPrice() {
        return goodsPrice;
    }

    /**
     * 设置对象的属性【现价】
     *
     * @param goodsPrice
     */
    public void setGoodsPrice(java.lang.String goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    /**
     * 获取对象的属性【原价】
     *
     * @return java.lang.String
     */
    public java.lang.String getOriginPrice() {
        return originPrice;
    }

    /**
     * 设置对象的属性【原价】
     *
     * @param originPrice
     */
    public void setOriginPrice(java.lang.String originPrice) {
        this.originPrice = originPrice;
    }

    /**
     * 获取对象的属性【返利金额】
     *
     * @return java.lang.String
     */
    public java.lang.String getRebate() {
        return rebate;
    }

    /**
     * 设置对象的属性【返利金额】
     *
     * @param rebate
     */
    public void setRebate(java.lang.String rebate) {
        this.rebate = rebate;
    }

    /**
     * 获取对象的属性【佣金比例】
     *
     * @return java.lang.String
     */
    public java.lang.String getCommissionRatio() {
        return commissionRatio;
    }

    /**
     * 设置对象的属性【佣金比例】
     *
     * @param commissionRatio
     */
    public void setCommissionRatio(java.lang.String commissionRatio) {
        this.commissionRatio = commissionRatio;
    }

    /**
     * 获取对象的属性【商品来源】
     *
     * @return java.lang.String
     */
    public java.lang.String getGoodFrom() {
        return goodFrom;
    }

    /**
     * 设置对象的属性【商品来源】
     *
     * @param goodFrom
     */
    public void setGoodFrom(java.lang.String goodFrom) {
        this.goodFrom = goodFrom;
    }

    /**
     * 获取对象的属性【关键词】
     *
     * @return java.lang.String
     */
    public java.lang.String getKeywords() {
        return keywords;
    }

    /**
     * 设置对象的属性【关键词】
     *
     * @param keywords
     */
    public void setKeywords(java.lang.String keywords) {
        this.keywords = keywords;
    }

    /**
     * 获取对象的属性【喜欢人数】
     *
     * @return java.lang.Long
     */
    public java.lang.Long getStarNum() {
        return starNum;
    }

    /**
     * 设置对象的属性【喜欢人数】
     *
     * @param starNum
     */
    public void setStarNum(java.lang.Long starNum) {
        this.starNum = starNum;
    }

    /**
     * 获取对象的属性【展示图片】
     *
     * @return java.lang.String
     */
    public java.lang.String getPicUrls() {
        return picUrls;
    }

    /**
     * 设置对象的属性【展示图片】
     *
     * @param picUrls
     */
    public void setPicUrls(java.lang.String picUrls) {
        this.picUrls = picUrls;
    }

    // ================================================================================================

    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("IsaleGoods=====>");
        sb.append("{");
        sb.append("id=>" + this.id).append(", ");
        sb.append("goodsName=>" + this.goodsName).append(", ");
        sb.append("catId=>" + this.catId).append(", ");
        sb.append("catName=>" + this.catName).append(", ");
        sb.append("url=>" + this.url).append(", ");
        sb.append("goodsCode=>" + this.goodsCode).append(", ");
        sb.append("goodsPrice=>" + this.goodsPrice).append(", ");
        sb.append("originPrice=>" + this.originPrice).append(", ");
        sb.append("rebate=>" + this.rebate).append(", ");
        sb.append("commissionRatio=>" + this.commissionRatio).append(", ");
        sb.append("goodFrom=>" + this.goodFrom).append(", ");
        sb.append("keywords=>" + this.keywords).append(", ");
        sb.append("starNum=>" + this.starNum).append(", ");
        sb.append("picUrls=>" + this.picUrls).append(", ");
        sb.append("createTime=>" + this.createTime).append(", ");
        sb.append("updateTime=>" + this.updateTime).append(", ");
        sb.append("}");
        return sb.toString();
    }

}